package com.daixin.blog.menu;

/**
 * Author daixin
 */
    public enum NotificationTypeEnum {
        REPLY_QUESTION(1, "回复了问题"),
        REPLY_COMMENT(2, "回复了评论");
        private int type;
        private String name;


        public int getType() {
            return type;
        }

        public String getName() {
            return name;
        }

        NotificationTypeEnum(int status, String name) {
            this.type = status;
            this.name = name;
        }

        public static String nameOfType(int type) {
            for (NotificationTypeEnum notificationTypeEnum : NotificationTypeEnum.values()) {
                if (notificationTypeEnum.getType() == type) {
                    return notificationTypeEnum.getName();
                }
            }
            return "";
        }
    }

